<?php
/**
 * ExtDateMenuBase class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftwareB.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */
 
 
class ExtDateMenuBase extends ExtMenu
{
    private $_datepicker_class_types = array('ExtDatePicker');

    public function parseNode(ExtHTMLParserNode $node,
        ExtASTWalker $astwalker)
    {
        parent::parseNode($node, $astwalker);
        $this->parseDatePicker($node, $astwalker);
    }

    private function parseDatePicker($node,$astwalker)
    {
        $picker = $node->findPropertyByName('datepicker');
        if(!is_null($picker))
        {
            $items=parent::parseNodeWidthTag($picker,
                $astwalker,
                true,
                null,
                $this,
                $this->_datepicker_class_types);
            /*
             * The config parameters for the date picker are merged from ExtDatePicker
             */
            $picker->shiftUp();
        }
    }

}
?>
